from pydantic import BaseModel
from typing import Optional, List
from datetime import datetime

class TaskBase(BaseModel):
    taskTitle: str
    taskGuide: str
    category: str

class TaskCreate(TaskBase):
    pass

class TaskUpdate(TaskBase):
    taskTitle: Optional[str] = None
    taskGuide: Optional[str] = None
    category: Optional[str] = None

class Task(TaskBase):
    id: str
    createdAt: str

    class Config:
        from_attributes = True 